<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 页面初始化公用样式 -->
    <link rel="stylesheet" href="./css/reset.css">
    <!-- 该页面独立样式 -->
    <link rel="stylesheet" href="./css/getMoneyCtrl.css">
    <!-- 引入jquery -->
    <script src="./lib/jquery/jquery.js"></script>
    <!-- 引入模板引擎 -->
    <script src="./lib/template/template-web.js"></script>
    <title>Document</title>
</head>

<body>
    <!-- 省钱控 -->
    <div class="getMoneyCtrl">
        <!-- 顶部 -->
        <header>
            <a href="javascript:;" class="fl">
                < </a> <span>省钱控 - 最新优惠</span>
                    <a href="javascript:;" class="fr">
                        <img src="./images/header_app.png" alt="app下载">
                    </a>
        </header>

        <!-- 商品主体预览 -->
        <div class="content">
            <ul class="items">
                <!-- 商品主体预览显示模板 占位 -->
            </ul>
        </div>

        <!-- 网页底部 -->
        <footer>
            <!-- 分页显示控制键 -->
            <div class="f_up">
                <div class="pre">上一页</div>
                <div class="form">
                    <select id="city" class="select">
                        <!-- 分页下拉框 占位 -->
                    </select>
                </div>
                <div class="next">下一页</div>
            </div>
            <div class="f_down">
                <div>
                    <a href="javascript:;">登录</a>
                    <a href="javascript:;">注册</a>
                    <span id="return">返回顶部</span>
                </div>
                <div>
                    <p><span>手机APP下载</span><span>慢慢买手机版</span><span>-掌上比价平台</span></p>
                    <p>m.manmanbuy.com</p>
                </div>
            </div>
        </footer>

        <!-- 为了ul能完整显示:清除底部fixed浮动的影响 -->
        <div class="showAll"></div>
    </div>

</body>

</html>
<!-- 引入当前页面js文件 -->
<script src="./js/_getMoneyCtrl.js"></script>
<!-- 商品主体预览显示模板 -->
<script type="text/template" id="item">
    {{each data as value index}}
    <li class="item">
        <!-- 商品图 -->
        <a href="./getDetails.html" class="fl">{{#value.productImgSm}}</a>
        <!-- 商品标题信息 -->
        <div class="fr">
            <div class="title"><a href="./getDetails.html">{{value.productName}}<span>{{value.productPinkage}}</span></a></div>

            <!-- 其他相关信息 -->
            <div class="info">
                <span>{{value.productFrom}}</span>
                <span>|</span>
                <span>{{value.productTime}}</span>
                <span><i class="iconfont">&#xe608;</i> 1</span>
            </div>
        </div>
    </li>
    {{/each}}
</script>
<!-- 分页下拉框的显示模板 -->
<script type="text/template" id="page">
    <% for(var i=1;i<=pageTotal;i++){%>
        <option value="<%= i %>/<%= pageTotal %>"><%= i %>/<%= pageTotal %></option>
    <% } %>
</script>